import sys, os, re 
import jobcrawler

# -------------------------------------------------------------------
# Main

url="http://rss.jobsearch.monster.com/rssquery.ashx?q=php&cy=de&lid=163&re=130&baseurl=stellenanzeige.monster.de"

data = jobcrawler.processRss(url)
jobcrawler.writeCsvFile('monster.csv', data['with_emails'])
jobcrawler.writeCsvFile('monster_noemails.csv', data['without_emails'])

